<?php 
include "connect.php";
$teacher_id=$_POST['teacher_id'];
$name=$_POST['name'];
$f_name=$_POST['f_name'];
$dob=$_POST['dob'];
$gender=$_POST['gender'];
$nic=$_POST['nic'];
$address=$_POST['address'];
$phone=$_POST['phone'];
$mobile=$_POST['mobile'];
$designation=$_POST['designation'];
$pay_per_day=$_POST['pay_per_day'];
$campus_id=$_POST['campus_id'];
$dept_id=$_POST['dept_id'];
$joining_date=$_POST['joining_date'];
$status=$_POST['status'];
$qualification_name=$_POST['qualification_name'];
$university=$_POST['university'];
$grade=$_POST['grade'];
$cgpa=$_POST['cgpa'];
$passing_year=$_POST['passing_year'];


$sql=mysql_query("UPDATE teacher SET name='$name',f_name='$f_name',dob='$dob',gender='$gender',nic='$nic',address='$address',phone='$phone',mobile='$mobile',designation='$designation',pay_per_day='$pay_per_day',campus_id='$campus_id',dept_id='$dept_id',joining_date='$joining_date',status='$status' where teacher_id='$teacher_id'");
	
	
	mysql_query("UPDATE teacher_academic SET qualification_name='$qualification_name',university='$university',grade='$grade',cgpa='$cgpa',passing_year='$passing_year' where teacher_id='$teacher_id'");


header("location:teacher_edit_success.php");

?>